home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8542 / 8542.xpi / chrome / lastpass.jar / content / yubikey.js < prev    next >
Text File  |  2010-02-14  |  2KB  |  6 lines

  1. var lpyubikeyusername=null;function window_load(B,A){lpyubikeyusername=(typeof(A.arguments)!="undefined"&&A.arguments.length>0&&typeof(A.arguments[0])!="undefined"&&typeof(A.arguments[0].username)!="undefined")?A.arguments[0].username:null;B.title=LP.lpgs("YubiKey Multifactor Authentication");LP.sr(B,"lpyubi1","value","1. Insert your YubiKey in the USB-port with the USB-contact facing upward");
  2. LP.sr(B,"lpyubi2","value","2. Wait until your YubiKey touch-button shines with a steady light");LP.sr(B,"lpyubi3","value","3. Hold your fingertip on the touch-button for 2 seconds");LP.sr(B,"lpyubiotp","value","");LP.sr(B,"lpbutton","label","Authenticate");LP.sr(B,"lpyubilost","value","If you lost your YubiKey device, click here to disable YubiKey authentication");
  3. LP.sr(B,"lptrust","label","This computer is trusted, do not require a second form of authentication.");LP.sr(B,"lplabeltext","value","Please provide this computer a name");B.getElementById("lpyubiotp").focus();if(A.arguments[0].username==null){B.getElementById("lpyubilost").style.display="none"}}function lpyubiaccept(B,A){if(B.getElementById("lptrust").checked){if(B.getElementById("trustlabel").value==""){LP.alert(LP.lpgs("Please provide this computer a name"));
  4. return false}else{if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].label=B.getElementById("trustlabel").value}}}if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].otp=B.getElementById("lpyubiotp").value}return true}function lpyubicancel(B,A){if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].otp=""
  5. }}function lpyubilost(){if(lpyubikeyusername){LP.lpbaseopen("lostkey.php?cmd=sendemail&username="+encodeURIComponent(lpyubikeyusername))}};
  6.